package com.gzy.cbrsystem.shimian.action;

import java.util.List;

import com.gzy.cbrsystem.shimian.dao.ShimianBingzhen;
import com.gzy.cbrsystem.shimian.service.CaseReasoning;
import com.opensymphony.xwork2.ActionSupport;

public class ShimianCaseDecisionMakingSimilarityTest extends ActionSupport {

	protected CaseReasoning caseReasoning;
	
	protected ShimianBingzhen shimianBingzhen;
	
	protected List similarCaseList;
	
	public void setSimilarCaseList(List similarCaseList)
	{
		this.similarCaseList=similarCaseList;
	}
	public List getSimilarCaseList()
	{
		return this.similarCaseList;
	}

	public void setShimianBingzhen(ShimianBingzhen shimianBingzhen) {
		this.shimianBingzhen = shimianBingzhen;
	}

	public ShimianBingzhen getShimianBingzhen() {
			return this.shimianBingzhen;
	}
	public void setCaseReasoning(CaseReasoning caseReasoning) {
		this.caseReasoning = caseReasoning;
	}

	public CaseReasoning getCaseReasoning() {
		return this.caseReasoning;
	}
	public String execute() throws Exception {
		List result=this.caseReasoning.findSimilarCaseByBingzhen(this.getShimianBingzhen());
		this.setSimilarCaseList(result);
		return SUCCESS;
	}
}
